package com.example.ai.model.data

import androidx.annotation.IntDef

/**
 * Created by lijinxi on 2024/3/7.
 * @Description:
 */
data class MessageData(
    @Identity val identity: Int,
    val text: String,
    val audio: String? = null,
    val talkID: String? = null,
    val talkUrl: String? = null,
    var consumed: Boolean = false
)


@Retention(AnnotationRetention.SOURCE)
@IntDef(Identity.MYSELF, Identity.OTHER)
annotation class Identity {
    companion object {
        const val MYSELF = 0
        const val OTHER = 1
    }
}